package com.museum.demo.Interface;

public enum ResultCode {
    SUCCESS(101,"成功！"),
    //服务器错误（超时）
    FALL(201,"等待下一步操作"),
    //查询数据库错误
    KEY_DUPLICATE(305,"主键重复！"),
    NULL_RESULT(306,"查询到的结果为空！"),
    PARAM_DEFALT(307,"参数传输异常"),
    PARAM_NULL(308,"参数为空"),
    PARAM_DISTINCT(309,"已有数据行"),
    //前端请求数据错误
    CAR_NULL(501,"用户名或密码错误"),
    ORDER_NULL(502,"用户点击错误"),
    COLLECT_NULL(503,"用户收藏为空"),
    ;

    private Integer Code;
    private  String Message;

    ResultCode(Integer code,String message){
        this.Code = code;
        this.Message = message;
    }

    public Integer getCode() {
        return Code;
    }

    public String getMessage() {
        return Message;
    }
}
